<%@ page language="java" import="java.util.*,com.nail.zhaogr.model.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ include file="/commons/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
   	<%@ include file="/commons/meta.jsp" %> 
   	<link href="<c:url value="/widgets/simpletable/simpletable.css"/>" type="text/css" rel="stylesheet">
  </head>
  <body>
  	<div class="topBar">
		<div class="twidth">
			<div id="currentCity">
				<font>成都</font><a href="#">切换城市</a> <a style="margin-left:10px;" href="">成都找工人网</a> → <a href="">装修工人</a>
			</div>
			<div id="topUser">
				<a href="${ctx}/PublishInfo/create.do" class="postMsg">免费发布信息</a>
				<a id="memberLink" href="${ctx}/MemberCenter/index.do">会员中心</a>
				<a id="exitLink" href="${ctx}/Login/exit.do">退出</a>
				<a id="loginLink" href="${ctx}/Login/indexLogin.do">我要登录</a>
				<a id="registerLink" href="${ctx}/Register/indexMembers.do">我要注册</a>
				<a href="javascript:void(0);" onClick="window.external.AddFavorite(document.location.href,document.title)">加入收藏</a>
				<a href="#">设为首页</a>
			</div>
		</div>
	</div>
  	<div id="sub-header" class="twidth">
	<div id="middle">
    <div id="directory" class="mframe mR" style="width:724px;float:left;">
    		<div class="tl"></div>
			<div class="tr"></div>
			<div class="tm">
				<div ><span class="tt">所有评论信息  ${model.publishInfo.cityTwo } -  ${model.publishInfo.cityThree } - ${model.publishInfo.category.categoryName} - ${model.publishInfo.name }</span></div><div class="titr"></div> 
			</div>
      <!-- Content -->
	  <div class="wrapper">
	  <div class="ml"></div>
	  <div class="mr"></div>
	  <div class="mm" style="padding:0 15px">
	  <c:if test="${page.totalCount>0}">
		 <s:iterator value="#request.page.result" var="item" status="state" >
			<div class="commentDiv">
			<li class="comments">
			服务态度评价：<s:if test="%{#item.attitude==0}">态度较差</s:if>
			<s:elseif test="%{#item.attitude==1}">态度一般</s:elseif>
			<s:elseif test="%{#item.attitude==2}">态度不错</s:elseif>
			<s:elseif test="%{#item.attitude==3}">态度出色</s:elseif>
			
			</li>
			<li class="comments">服务质量评价：<s:if test="%{#item.attitude==0}">手艺很差</s:if>
			<s:elseif test="%{#item.attitude==1}">手艺一般</s:elseif>
			<s:elseif test="%{#item.attitude==2}">手艺良好</s:elseif>
			<s:elseif test="%{#item.attitude==3}">手艺很好</s:elseif></li>
			<li class="commentContents"><span>&nbsp;&nbsp;&nbsp;一句话评价：</span>${contents}</li>
			<li class="commentUser">
			<font style="color:#bbb">评论人：</font><span>${item.members.loginName}</span> 
			&nbsp;&nbsp;&nbsp;<span>${commentDateString}</span> </li> 
			</div>
		</s:iterator>
		</c:if>
		<simpletable:pageToolbar page="${page}"  isShowPageSizeList="false">
		</simpletable:pageToolbar>
	  </div>
	  </div>
    </div>
    
    <div class="lframe" style="float:left;width:228px;">
	<div class="tl"></div>
	<div class="tr"></div>
	<div class="tm">
		<span class="tt">本周热门工人</span>
	</div>
	<div class="wrapper">
	<div class="ml"></div>
	<div class="mr"></div>
	<div class="mm">
		<ul class="nl">
			<li><a href="../ZhengQuanShiChang/2010-08/112.htm" target="_blank">成都-青阳-刮腻子-刘师傅</a></li>
			<li><a href="../ZhengQuanShiChang/2010-08/112.htm" target="_blank">成都-青阳-刮腻子-刘师傅</a></li>
			<li><a href="../ZhengQuanShiChang/2010-08/112.htm" target="_blank">成都-青阳-刮腻子-刘师傅</a></li>
			<li><a href="../ZhengQuanShiChang/2010-08/112.htm" target="_blank">成都-青阳-刮腻子-刘师傅</a></li>
			<li><a href="../ZhengQuanShiChang/2010-08/112.htm" target="_blank">成都-青阳-刮腻子-刘师傅</a></li>
		</ul>
	</div>
	</div>
	<div class="bl"></div>
	<div class="br"></div>
	<div class="bm"></div>
	</div>
	
  	</div>
  	<jsp:include page="/commons/bottom.html"  flush="true"></jsp:include>
  	</div>
  </body>
  <script>
  	if('${session.memberInfo.points}'!=''){
  		document.getElementById("memberLink").style.display='';
  		document.getElementById("exitLink").style.display='';
  		document.getElementById("loginLink").style.display='none';
  		document.getElementById("registerLink").style.display='none';
  	}else{
  		document.getElementById("memberLink").style.display='none';
  		document.getElementById("exitLink").style.display='none';
  		document.getElementById("loginLink").style.display='';
  		document.getElementById("registerLink").style.display='';
  	}
  </script>
</html>
